import request from "../../../libs/request";




export function AddPhysical(data) {

  return request({ url: '/api/v1/locker/controllers', data, method: "post" });
}

export function getControllersList(params) {
  return request({ url: "/api/v1/locker/controllers?current=1&pageSize=50", params })
}




export function GetManagementList() { 
  return request.get('/api/v1/locker/management-areas?current=1&pageSize=10');
}




export function GetlockersList(params) {
  return request({url:'/api/v1/locker/lockers',params});
}

export function management_Add(data) { 
  return request.post('/api/v1/locker/management-areas', data);
}

export function Del_Management(id) { 
  return request.delete('/api/v1/locker/controllers/'+id);
}





export function Areabatch(data) {
  return request.put("/api/v1/locker/lockers/batch-update-area",data);
}


export function Del_Batch(ids) { 
  return request.delete('/api/v1/locker/lockers/batch',{data:ids});
}

export function UpdateArea(id,data) { 
  return request.put('/api/v1/locker/management-areas/'+id,data);
}


export  function deleteArea(id) { 
  return request.delete('/api/v1/locker/management-areas/'+id);
}

